/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.proposeproduct.service.ProposeProductService
   Module Description   :

   Date Created      : 2009/11/16
   Original Author   : ellen.li
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.proposeproduct.service;

import java.util.List;
import java.util.Map;

import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;
import com.yaodian100.ec.proposeproduct.entity.ProposeProduct;

/**
 * @author ellen.li
 * 
 */
public interface ProposeProductService extends DomainService<ProposeProduct> {

	public Map<String, Object> approveProduct(String[] proposeProductList) throws CoreException;

	public Map<String, Object> deleteProduct(String[] proposeProductList) throws CoreException;

	public Map<String, Object> unapproveProduct(String[] proposeProductList) throws CoreException;

	public Map<String, Object> uploadExcel(List<List> excelLists, String batchId) throws CoreException;

	public void replaceImageName(Map replaceNameMap, List replaceMapKeyList) throws CoreException;

	public void saveToFile(String productId, String context, String contextType) throws CoreException;

	/**
	 * @param excelLists
	 * @param batchId
	 * @return
	 * @throws CoreException
	 */
	public Map<String, Object> uploadExcelAndSaveAsProduct(List<List> excelLists, String batchId, String supplier,
			String supplierTW) throws CoreException;
}
